home *** CD-ROM | disk | FTP | other *** search
- property sprt, Active
- global Wheel, Ship, PauseFlag
-
- on beginSprite me
- sprt = sprite(me.spriteNum)
- end
-
- on mouseEnter me
- Active = 1
- end
-
- on mouseLeave me
- Active = 0
- Wheel.notSelected()
- end
-
- on mouseUp me
- ml = the mouseLoc
- if inside(ml, sprt.rect) then
- if ml.locH > ((sprt.width / 2) + sprt.left) then
- Ship.turnRight()
- else
- Ship.turnLeft()
- end if
- end if
- end
-
- on exitFrame me
- if not PauseFlag then
- if Active then
- ml = the mouseLoc
- if inside(ml, sprt.rect) then
- if ml.locH > ((sprt.width / 2) + sprt.left) then
- Wheel.rightSelected()
- else
- Wheel.leftSelected()
- end if
- end if
- end if
- end if
- end
-